cpdef double calc_f1(double recall, double precision)